package com.atguigu.eduservice.client;


import com.atguigu.eduservice.client.hystrix.OrderHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @author cyt
 * @create 2020-06-04 6:40
 */
@FeignClient(name = "service-order", fallback = OrderHystrix.class)
@Component
public interface OrderClient {
    @GetMapping("/orderservice/order/idBuy/{memberId}/{courseId}")
    public boolean idBuy(@PathVariable("memberId") String memberId, @PathVariable("courseId") String courseId);
}
